<?php
class SysConfigDao {
	public $table ='sys_config';
	public function get($id){
		return ClassManager::getSql()->oneDataCache($this->table,'id',intval($id));
	}
		
	public function getBySyskey($sys_key){
		return ClassManager::getSql()->oneDataCache($this->table,'sys_key',$sys_key);
	}
		
	public function 	getList(){
		return  ClassManager::getSql()->datalist($this->table);
	}
	
	public function update($data,$id){
		ClassManager::getSql()->updates($this->table, $data,"where id=".intval($id));
	}	
}
?>